﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DataAccess;

namespace Bussiness {
    public class EndUpdateInventoryBuss {
        public DataTable getAll(int partnerID) {
            EndUpdateInventoryRepository repository = new EndUpdateInventoryRepository();
            return repository.getAll(partnerID);
        }

        public bool add(String SID, String TransID, String Msg) {
            //int trans_id = getTranID(SID, TransID);
            //if (trans_id == 0)
           //     return false;

            EndUpdateInventoryRepository repository = new EndUpdateInventoryRepository();
            return repository.add(SID, TransID, Msg);
        }

        public int getTranID(String SID, String TransID) {
            EndUpdateInventoryRepository res = new EndUpdateInventoryRepository();
            return res.getTranID(SID, TransID);
        }
    }
}
